package com.smfx.yxt.common.enums;

public enum LateCoachType {

	LESSON(1, "第八节"),
	ONE(2, "晚修一"),
	TWO(3, "晚修二"),
	;
	
	private final Integer key;
	
	private final String value;
	
	private LateCoachType(Integer key, String value) {
		this.key = key;
		this.value = value;
	}
	
	public static Integer getKey(String v) {
		for(LateCoachType type : LateCoachType.values()) {
			if(type.getValue().equals(v)) {
				return type.getKey();
			}
		}
		return null;
	}
	
	public static String getValue(Integer k) {
		for(LateCoachType type : LateCoachType.values()) {
			if(type.getKey().intValue() == k.intValue()) {
				return type.getValue();
			}
		}
		return null;
	}
	
	public Integer getKey() {
		return key;
	}

	public String getValue() {
		return value;
	}
	
}
